

//弹出缩略图上传页面
function showUploadLogoBlock(bili,url,form_id,title,iname,iid)
{
    window.top.art.dialog({id:form_id}).close();
    window.top.art.dialog.open(url,{bili:bili,id:form_id,title:title,width: '50%', height: '80%', left: '50%', top: '50%', fixed: true, resize: false, drag: false,lock:true,ok: function ()
    {
        var iframe = this.iframe.contentWindow;
        if (!iframe.document.body) {
            alert('loading...');
            return false;
        };
        var aInput=[];

        if(form_id=="v2uploadlogo"){
            imgbox =iframe.$("#Intheend").val();
            $("#img-"+iid).attr("src",imgbox);
            $('input[name="'+iname+'"]').val(imgbox);
            this.hide();
        }
    },cancel: true,
        close: function () {
            this.hide();
        }});
}


